using Microsoft.EntityFrameworkCore.Migrations;

namespace Server.Models.Data.Identity;

public partial class InitialIdentity : Migration
{
  protected override void Up(MigrationBuilder migrationBuilder)
  {
    migrationBuilder.CreateTable(
        name: "ClaimType",
        columns: table =>
        {
          return new
          {
            Id = table.Column<Guid>(type: "TEXT", nullable: false),
            Name = table.Column<string>(type: "TEXT", nullable: false),
            Description = table.Column<string>(type: "TEXT", nullable: true),
            ClaimValueType = table.Column<string>(type: "TEXT", nullable: false)
          };
        },
        constraints: table =>
        {
          table.PrimaryKey("PK_ClaimType", x => x.Id);
        });

    migrationBuilder.CreateIndex(
        name: "IX_ClaimType_Name",
        table: "ClaimType",
        column: "Name",
        unique: true);
  }

  protected override void Down(MigrationBuilder migrationBuilder)
  {
    migrationBuilder.DropTable(
        name: "ClaimType");
  }
}
